package com.cqhilink.iot.jobstandardmanagement.dao.mapper;

import com.cqhilink.iot.jobstandardmanagement.facade.model.AbnormalType;
import com.cqhilink.iot.jobstandardmanagement.facade.model.BootstrapSearchBean;

import java.util.List;
import java.util.Map;

public interface EntityAbnormalTypeMapper {

    /**
     * 根据异常类型ID,逻辑删除异常类型
     * @param abnormalTypeId 异常类型ID
     * @return
     */
    int deleteByPrimaryKey(String abnormalTypeId);

    /**
     * 根据异常类型ID,批量逻辑删除异常类型
     * @param abnormalTypeIds 异常类型ID
     * @return
     */
    int deleteByPrimaryAbnormalIds(Map abnormalTypeIds);
    /**
     * 新增异常类型
     * @param record 异常类型
     * @return
     */
    int insert(AbnormalType record);
    /**
     * 新增异常类型
     * @param record 异常类型
     * @return
     */
    int insertSelective(AbnormalType record);
    /**
     * 新增异常类型
     * @param abnormalTypeId 异常类型
     * @return
     */
    AbnormalType selectByPrimaryKey(String abnormalTypeId);
    /**
     * 新增异常类型列表分页数据
     * @param abnormalType
     * @return
     */
    int queryCount(AbnormalType abnormalType);
    /**
     * 新增异常类型列表分页
     * @param abnormalType
     * @return
     */
    List<AbnormalType> queryTableList(AbnormalType abnormalType);
    /**
     * 更新异常类型
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(AbnormalType record);
    /**
     * 根据key更新异常类型
     * @param record
     * @return
     */
    int updateByPrimaryKey(AbnormalType record);




}